/**
 * 接口路径统一管理模块
 */

import { get, post } from "./http";

//  张文静
// 获取所有职工列表
export const getallStaffList = staff => get("/selectallStaff",staff);
// 添加报修
export const addRepair = repair => post("/addRepair", repair);

// 陈茹琳
// 获取美食列表
export const getEatList = eat => get('/selectEat', eat);
// 获取美食详情
export const getDetailsList = eat => get('/eatDetails', eat);
// 用户登录
export const ownerLogin = owner => post("/ownerLogin", owner);
// 用户注册
export const ownerRegister = owner => post("/addOwner", owner);

// 乔月
 // 获取新闻列表
 export const getNewsList = news => get('/selectNews', news);
// 公告详情
export const newsDetail = news => get('/newsDetail', news);
// export const getHeadlineDetail = headlines => get('/headlineDetail', headlines);
// 获取新闻列表
export const getHotspotList = hotspot => get('/hotspot', hotspot);
//新闻详情
export const HotspotDetail = hotspot => get('/hotspotDetail', hotspot);
